public class Sum {
    public static int sum(int a,int b){
        return a>b?a:b;
    }
    public static double sum(double a,double b,double c){
        return ((a>b?a:b)>c?(a>b?a:b):c);
    }

    public static void main(String[] args) {
        int a1 = 5;
        int b1 = 3;
        double a2 = 1.3;
        double b2 = 3.5;
        double c1 = 5.8;
        System.out.println(sum(a1,b1));
        System.out.println(sum(a2,b2,c1));
    }
    /*public static int sum(int a,int b){
        return a+b;
    }
    public static double sum(double a,double b,double c){
        return a+b+c;
    }

    public static void main(String[] args) {
        int a1 = 5;
        int b1 = 3;
        double a2 = 1.3;
        double b2 = 3.5;
        double c1 = 5.8;
        System.out.println(sum(a1,b1));
        System.out.println(sum(a2,b2,c1));
    }*/
}
